projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97f49c6
)
cssshadow: plug a cairo_surface_t leak
author
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 16 Oct 2012 15:54:33 +0000
(11:54 -0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 16 Oct 2012 17:07:51 +0000
(13:07 -0400)
We were never destroying the cairo surface we use for blurring, which
would lead to a huge leak.
https://bugzilla.gnome.org/show_bug.cgi?id=686209
gtk/gtkcssshadowvalue.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssshadowvalue.c
b/gtk/gtkcssshadowvalue.c
index be215972adf0eb029e756fa1706f71bad34a4eae..40dd3a024bbc53388234c40e079ae4be7ca643a3 100644
(file)
--- a/
gtk/gtkcssshadowvalue.c
+++ b/
gtk/gtkcssshadowvalue.c
@@
-363,6
+363,7
@@
gtk_css_shadow_value_finish_drawing (const GtkCssValue *shadow,
cairo_paint (original_cr);
cairo_destroy (cr);
+ cairo_surface_destroy (surface);
return original_cr;
}